package message.response;

import message.RequestWrapper;
import message.Response;

/**
 * Retrieves the corrupted request message.
 * <p/>
 * <b>Request</b>:<br/>
 * any request<br/>
 * <b>Response:</b><br/>
 * {@code Request message corrupted! Recieved Message: &lt;corruptedMessage&gt;}<br/>
 *
 * @see message.Request
 */
public class CorruptedMessageResponse implements Response {

	private static final long serialVersionUID = -7750832286083973686L;
	
	private RequestWrapper request;
	
	public CorruptedMessageResponse(RequestWrapper corruptedRequest) {
		request = corruptedRequest;
	}

	public RequestWrapper getRequest() {
		return request;
	}
	
	@Override
	public String toString() {
		return "Request message corrupted! Recieved Message: " + request.toString();
	}
}